sum_ji=0
sum_ou=0
for i in range(1,51):
    if i%2==0:
        sum_ou+=i
    else:
        sum_ji+=i
print(f"1-50内的奇数和为：{sum_ji}")
print(f"1-50内的偶数和为：{sum_ou}")